.TH E1432_SET_INTERRUPT_PRIORITY 3 E1432
.SH NAME
.nf
e1432_set_interrupt_priority \- Set interrupt priority
e1432_get_interrupt_priority \- Get current interrupt priority
.fi
.IX e1432_set_interrupt_priority(3) 3
.IX e1432_get_interrupt_priority(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_interrupt_priority(E1432ID hw, SHORTSIZ16 ID,
                                        SHORTSIZ16 priority)
SHORTSIZ16 e1432_get_interrupt_priority(E1432ID hw, SHORTSIZ16 ID,
                                        SHORTSIZ16 *priority)
.cE
.SH DESCRIPTION

\fIe1432_set_interrupt_priority\fR sets which VME interrupt line to
use when interrupting.  It is not actually a priority level, it just
specifies which line to use.

\fIe1432_get_interrupt_priority\fR returns the current value of the interrupt
priority, of a single channel or group of channels \fIID\fR,
into a memory location pointed to by \fIpriority\fR.

This parameter is a "global" parameter.  It applies to an entire E1432
module rather than to one of its channels.  The \fIID\fR parameter is
used only to identify which module the function applies to, and all
channels in that module will report the same value for this parameter.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained with a
call to \fIe1432_create_channel_group\fR, or the ID of a single channel.

\fIpriority\fR specifies which of the seven VME interrupt lines to
use.  The only legal values are 0 through 7.  Specifying 0 turns the
interrupt off.  This parameter may also be set with
\fIe1432_set_interrupt\fR.
.SH "RESET VALUE"
After a reset, \fIpriority\fR is set to \fB0\fR (none).
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_set_interrupt, e1432_get_interrupt_priority_limits,
e1432_intr(5)
.ad
